package com.itheima.demo8;

import java.io.IOException;

public class Student {
    private String  name;
    private String gender;
    public int age;
    private double weight;
    private String something;

    public Student(String name, String gender, int age, double weight, String something) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.weight = weight;
        this.something = something;
    }

    public String getSomething() {
        return something;
    }

    public void setSomething(String something) {
        this.something = something;
    }

    @Override
    public String toString() {
        return name + '-' +gender + '-' + age +'-' + weight ;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    private String eat (String something) throws IOException {
        System.out.println( "在吃" + something);
        return "奥利给";
    }

    public void study(){
        System.out.println("学生在学习！");
    }

    public Student(String name, String gender, int age, double weight) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.weight = weight;
    }

    public Student() {
    }
}
